package com.frx.datastruct.chapternine;

/**
 * Created by xurenfeng on 2019/3/8.
 */
public class MainTest {
    public static void main(String[] args){
        Integer[] nums = {-2,0,3,-5,2,-1};
        SegementTree<Integer> segementTree = new SegementTree<>(nums, new Merger<Integer>() {
            @Override
            public Integer merge(Integer a, Integer b) {
                return a + b;
            }
        });

        System.out.println(segementTree);

    }
}
